package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * packageName com.sky.mapper
 *
 * @author fenglai
 * @version JDK 11
 * @interfaceName OrderDetailMapper
 * @date 2023/12/4
 * @description TODO
 */
@Mapper
public interface OrderDetailMapper {

    @Select("select * from order_detail where order_id=#{id}")
     List<OrderDetail> getDetail(Long id);


    void insertOrderDetail(List<OrderDetail> orderDetails);
}